const mongoose = require('./db')

const articleSchema = mongoose.Schema({
    title: String,
    content: {
        type: String,
        default: '内容'
    },
    cate_id: mongoose.Schema.Types.ObjectId,
    user_id: mongoose.Schema.Types.ObjectId
})

module.exports = mongoose.model('Article', articleSchema, 'articles')
